.class Lorg/microemu/android/MicroEmulator$3;
.super Ljava/io/OutputStream;
.source "MicroEmulator.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/microemu/android/MicroEmulator;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field line:Ljava/lang/StringBuffer;

.field final synthetic this$0:Lorg/microemu/android/MicroEmulator;


# direct methods
.method constructor <init>(Lorg/microemu/android/MicroEmulator;)V
    .locals 1
    .parameter

    .prologue
    .line 158
    iput-object p1, p0, Lorg/microemu/android/MicroEmulator$3;->this$0:Lorg/microemu/android/MicroEmulator;

    invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V

    .line 160
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iput-object v0, p0, Lorg/microemu/android/MicroEmulator$3;->line:Ljava/lang/StringBuffer;

    return-void
.end method


# virtual methods
.method public write(I)V
    .locals 4
    .parameter "oneByte"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 164
    int-to-char v0, p1

    const/16 v1, 0xa

    if-ne v0, v1, :cond_0

    .line 165
    iget-object v0, p0, Lorg/microemu/android/MicroEmulator$3;->line:Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lorg/microemu/log/Logger;->debug(Ljava/lang/String;)V

    .line 166
    iget-object v0, p0, Lorg/microemu/android/MicroEmulator$3;->line:Ljava/lang/StringBuffer;

    const/4 v1, 0x0

    iget-object v2, p0, Lorg/microemu/android/MicroEmulator$3;->line:Ljava/lang/StringBuffer;

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->length()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuffer;->delete(II)Ljava/lang/StringBuffer;

    .line 170
    :goto_0
    return-void

    .line 168
    :cond_0
    iget-object v0, p0, Lorg/microemu/android/MicroEmulator$3;->line:Ljava/lang/StringBuffer;

    int-to-char v1, p1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_0
.end method
